package com.model;

public class Movie {
     private String name;
     private String lei;
     private String time;
     private String area;

 // 该类具有电影名称、电影类别、电影时长、地区等属性（都是字符串类型、私有）
public String getName()
{
     return name ;
}
public void setName(String name)
{

    this.name = name ;
}
public String getLei()
{
    return lei ;
}
public void setLei(String lei)
{

    this.lei = lei;
}
public String getTime()
{

    return time;
}
public void setTime(String time)
{

    this.time = time ;
}
public String getArea()
{

    return area;
}
public void setArea(String area)
{

    this.area = area;
}

public void say()
{
    System.out.println("电影名称："+name+"，电影类别："+lei+"，电影时长："+time+"，地区："+area+"。");
}
}
